package com.ruoyi.platform.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.platform.mapper.AdvertisersMapper;
import com.ruoyi.platform.domain.Advertisers;
import com.ruoyi.platform.service.IAdvertisersService;

/**
 * 合作广告商Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-21
 */
@Service
public class AdvertisersServiceImpl implements IAdvertisersService 
{
    @Autowired
    private AdvertisersMapper advertisersMapper;

    /**
     * 查询合作广告商
     * 
     * @param advertiserId 合作广告商主键
     * @return 合作广告商
     */
    @Override
    public Advertisers selectAdvertisersByAdvertiserId(String advertiserId)
    {
        return advertisersMapper.selectAdvertisersByAdvertiserId(advertiserId);
    }

    /**
     * 查询合作广告商列表
     * 
     * @param advertisers 合作广告商
     * @return 合作广告商
     */
    @Override
    public List<Advertisers> selectAdvertisersList(Advertisers advertisers)
    {
        return advertisersMapper.selectAdvertisersList(advertisers);
    }

    /**
     * 新增合作广告商
     * 
     * @param advertisers 合作广告商
     * @return 结果
     */
    @Override
    public int insertAdvertisers(Advertisers advertisers)
    {
        return advertisersMapper.insertAdvertisers(advertisers);
    }

    /**
     * 修改合作广告商
     * 
     * @param advertisers 合作广告商
     * @return 结果
     */
    @Override
    public int updateAdvertisers(Advertisers advertisers)
    {
        return advertisersMapper.updateAdvertisers(advertisers);
    }

    /**
     * 批量删除合作广告商
     * 
     * @param advertiserIds 需要删除的合作广告商主键
     * @return 结果
     */
    @Override
    public int deleteAdvertisersByAdvertiserIds(String[] advertiserIds)
    {
        return advertisersMapper.deleteAdvertisersByAdvertiserIds(advertiserIds);
    }

    /**
     * 删除合作广告商信息
     * 
     * @param advertiserId 合作广告商主键
     * @return 结果
     */
    @Override
    public int deleteAdvertisersByAdvertiserId(String advertiserId)
    {
        return advertisersMapper.deleteAdvertisersByAdvertiserId(advertiserId);
    }
}
